package javaclass;

import Dao.Caculator;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    private ApplicationContext ioc = new ClassPathXmlApplicationContext("applicationContext.xml");
    @org.junit.Test
    public void test(){
       // Caculator caculator = ioc.getBean(Caculator.class);
       // caculator.add(1,2);
        MyCaculatort myCaculatort = ioc.getBean(MyCaculatort.class);
        myCaculatort.add(1,2);
       //myCaculatort.div(1,0);
       // System.out.println(myCaculatort.getClass());
    }
}